<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>二维码管理</title>
            <script type="text/javascript" src="../jquery-1.8.3.js"></script>
            <script type="text/javascript">
                $(function () {

                });
            </script>
        </head>
        <body>
            <a href="<%=request.getContextPath() %>/wqr/add">添加固定二维码</a> &nbsp;&nbsp;
            <a href="<%=request.getContextPath()%>/wqr/list/base ">固定二维码列表</a>&nbsp;&nbsp;
            <a href="<%=request.getContextPath()%>/wqr/list/temp ">临时二维码列表</a>
            <table width="900" align="center" border="1">
                <tr>
                    <td>ID</td>
                    <td>name</td>
                    <td>status</td>
                    <td>type</td>
                    <td>snum</td>
                    <td>qrData</td>
                    <td>msg</td>
                    <td>头像</td>
                </tr>
                <c:forEach items="${datas}" var="wq">
                    <tr>
                        <td>${wq.id }</td>
                        <td>${wq.name}</td>
                        <td>${wq.status}</td>
                        <td>${wq.type}</td>
                        <td>${wq.snum}</td>
                        <td>${wq.qrData}</td>
                        <td>${wq.msg}</td>
                        <td><img width="120" src="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${wq.ticket}"/></td>
                    </tr>
                </c:forEach>
            </table>
        </body>
    </html>
